namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class RoleMap : ClassMap<RoleDataModel>
    {
        #region Constructors and Destructors

        public RoleMap()
        {
            this.Table("Roles");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.Rolename)
                .KeyProperty(x => x.ApplicationName);

            //HasMany(x => x.PageGroupAccesses);
            //HasMany(x => x.UsersInRoles);
        }

        #endregion
    }
}